// house_pkg/pages/building/index.ts
Page({
  onLoad({ point }) {
    this.fake(point)
  },
  // 获取假数据
  fake(point) {
    const size = Math.floor(Math.random() * 4) + 3
    const type = size > 4 ? '号楼' : '栋'
    this.setData({
      size,
      point,
      type
    })
  },
  // 跳转到房间页
  goRoom(ev) {
    wx.navigateTo({
      url: `/house_pkg/pages/room/index?point=${this.data.point}&building=${ev.mark.building}`
    })
  },
})